package com.heys.inter.impl;

import java.io.UnsupportedEncodingException;

import com.heys.inter.IUsb;

/**
 * UsbAb 这个属于默认实现
 */
public abstract class UsbAb implements IUsb{

	@Override
	public byte[] read() {
		try {
			return "我是读功能".getBytes("UTF-8");
		} catch (UnsupportedEncodingException e) {
            System.out.println(e.getMessage());
			e.printStackTrace();
        }
        return new byte[]{};
	}

	@Override
	public void writ(byte[] source) {
        
		try {
			throw new Exception("此方法未实现");
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

    
    
}